home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
misc
/
trakball.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
2KB
|
50 lines
Taming your machine with a mouse has long been a dream of the ATARI 8-bitters.
The mouse had it's origins around the 1960's, but did see much use until the
1980's when the Mac,ST and Amiga were unveiled. The mouse was also used by the
engineering world as an input device for graphics workstations in the late
70's. The Track-ball is a close relative to the Mouse. A track-ball is
basicly the same device flipped over allowing the hand position the ball
directly.
The Old ATARI did have some foresight in developing input devices for the 8-bit
machines. The TrackBall is one of them. The Track-ball allows smooth tracking
of 2 dimensional motion and its associated velocity. Atari Basic is too slow
so it can not be read with atari basic. Faster langauges such ACTION and
Assembly can read the velocity vectors directly from the joystick registers.
(mention something about which bits represent the direction and speed.)
One thing the Atari Trak Ball lacks is a separate button that can function as
the left mouse button. Since the mouse and the Track-ball are virtually the
same device it should be possible to read and ST mouse using the Trak-ball read
code. The 8-bits can read the ST left mouse if a pull-up resistor is added to
pin 6.
Heres the pinout on the ST mouse.
_____________
\ 1 2 3 4 5 /
\ 6 7 8 9 /
---------
1- up/xb
2- down/xa
3- left/ya
4- right/yb
5- not connected
6- Fire/left mouse button
7- +5vdc
8- ground
9- Joystick 1 Fire/Right Mouse button.
I have included 3 programs that demostrate the trak-balls ability to read
direction and velocity. One program is written in basic with a short assemble
used to read the T-ball input vector. The other 2 programs are written in
ACTION!
| | |
Mike Buford | | | 8-bits Forever/
Dflint02@ulkyvx.bitnet or | | | Whether i buy a new
CL150652@ulkyvm.bitnet / | \ machine or not!
(An Action Programmer!) / | \